<?xml version="1.0" encoding="ISO-8859-1" ?>

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core" version="2.0">
	<jsp:directive.page contentType="text/html; charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />

	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Gamer's Community</title>
<jsp:include page="common/headerScripts.jsp" />
<link rel="stylesheet" href="${root}/css/L75R25.css" />
<script type="text/javascript">
	$(document).ready(function() {
		$("tr:odd").addClass("odd");
	});
</script>
</head>
<body>
	<jsp:include page="common/header_nav.jsp" />
	<!-- main starts -->
	<div id="main" class="grid-block">
		<div id="maininner" class="grid-box">
			<section id="content" class="grid-block">
				<div id="system-message-container"></div>
				<div id="system">
					<div class="items items-col-0 grid-block">
						<!-- Main Content -->
						<!-- start Main Content -->
						Admin Games page

						<form action="${root }/admin/games" method="get">
							<select name="filter">
								<option value="all">All</option>
								<c:forEach var="i" items="${pfList }">
									<option value="${i.name }">${i.name }</option>
								</c:forEach>
							</select> <input type="submit" name="submit" value="Sort" />
						</form>

						<c:if test="${not empty msg }">
							<div id="error">${msg }</div>
						</c:if>

						<table class="tablesorter" border="0" cellpadding="0"
							cellspaceing="1">
							<tr>
								<th>id</th>
								<th>name</th>
								<th></th>
								<th></th>
							</tr>
							<c:forEach var="i" items="${gameList }">
								<form action="${root }/admin/games" method="post">
									<tr>
										<td>${i.id } <input type="hidden" name="id"
											value="${i.id}" />
										</td>
										<td><a href="${root}/admin/game/${i.id}">${i.name}</a>
										</td>
										<td>${i.platform }</td>
										<td><input type="submit" name="submit" value="Delete" />
										</td>
									</tr>
								</form>
							</c:forEach>
						</table>

						<!-- Main Content ends-->
					</div>
				</div>
			</section>
		</div>
		<!-- maininner end -->

		<jsp:include page="UserPanel.jsp" />
	</div>
	<!-- main end -->

	<jsp:include page="common/footer.jsp" />



</body>
	</html>
</jsp:root>
